//***************************************************************
//  PseudoNumber.java     Author: Tang Caiming
//
//  Generate and output the random number between [-10, 10]
//  and output its hexadecimal form.
//***************************************************************

import java.util.*;

public class PseudoNumber
{
   public static void main(String[] args)
   {
      Random generator = new Random();
      int num;
 
      num = generator.nextInt(20) - 10;
      System.out.println("The result of autoboxing is: " + num);    
     
      System.out.println("ToBinaryString: " + Integer.toBinaryString(num));
      System.out.println("ToHexString: " + Integer.toHexString(num));
      System.out.println("ToOctalString: " + Integer.toOctalString(num));
   }
}
